package com.sie.service.impl;

import com.sie.mapper.UsersMapper;
import com.sie.pojo.Users;
import com.sie.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UsersServiceImpl implements UsersService {
    @Autowired
    private UsersMapper usersMapper;

    @Override
    public Users findByNameAndPwd(String username, String password) {
        return usersMapper.findByNameAndPwd(username,password);
    }

    @Override
    public List<Users> findAll() {
        return usersMapper.findAll();
    }
}
